﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Collections.ObjectModel;
using RATSharp.Model;
using RATSharp.Rest;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Windows.Threading;
using System.Runtime.Serialization;

namespace RATSharpW7.ViewModel
{
    /// <summary>
    /// Favourites ViewModel. Loads favourites.
    /// </summary>
    [DataContract]
    public class FavouritesViewModel : CollectionViewModel<RATSharp.Model.Object, Objects>
    {
        public void loadFavourites()
        {
            Task<RATSharp.Model.Objects> task = RestService.getInstance().getFavouritesAsync();
            notifyChangeModel(task);
        }

    }
}
